package com.hxzy.controller.mobile.cart.req;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/7/21 14:31
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class CartAddReq {

    /**
     * 金额
     */
    @NotNull(message = "金额不能为空")
    private BigDecimal amount;

    /**
     * 口味
     */
    private String dishFlavor;

    /**
     * 菜品id
     */
    @NotNull(message = "菜品id不能为空")
    private Long dishId;

    /**
     * 图片
     */
    @NotBlank(message = "图片名称不能空")
    private String image;

    /**
     * 商家id
     */
    @NotNull(message = "商家id不能为空")
    private Long merchantId;

    /**
     * 名称
     */
    @NotBlank(message = "商品名称不能空")
    private String name;

}
